#!/usr/bin/env node
//方法一
setTimeout(function(){
    console.log('hello')
},5000)
//方法二
function sleep(ms){
    return new Promise((resolve) => setTimeout(resolve,ms))
}

async function example(){
    await sleep(5000);
    console.log('hello')
}

example();
//方法三
async function example(){
    await new Promise((resolve) => setTimeout(resolve,5000));
    console.log('hello')
};

example();